<?php
//---------------------------------------------------------
//               Buddha Bless, No Bug !
//         User: wuxuehai Date: 2018/8/22 Time: 上午10:14
//---------------------------------------------------------

namespace console\controllers;

use custom\models\EnergyReport;
use yii\console\Controller;

class TestController extends Controller
{
    public function actionIndex()
    {
        $model = new EnergyReport();

        $model->generatePdf = true;

        $model->download();
    }
}
